package br.com.curso.builder;

public class ItemDaNotaBuilder {

	private String descricao;
	private double valor;

	public ItemDaNotaBuilder comDescricao(String desc) {
		this.descricao = desc;
		return this;
	}
	
	public ItemDaNotaBuilder comValor(double valor) {
		this.valor = valor;
		return this;
	}
	
	public ItemDaNota criarItemDaNota() {
		return new ItemDaNota(descricao, valor);
	}
}
